﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace centraldba_dbrestore_utility
{
    /// <summary>
    /// Interaction logic for frmConfigure.xaml
    /// </summary>
    public partial class frmConfigure : Window
    {
        public frmConfigure()
        {
            InitializeComponent();
            cmdCancel.IsEnabled = centraldba_dbrestore_utility.Properties.Settings.Default.centraldba_server_name.Equals("yourserver");

            PropertyPanel.SelectedObject = new msx_config_propertygrid();
        }

        private void cmdCancel_Click(object sender, RoutedEventArgs e)
        {
            App.Current.Shutdown();
        }

        private void cmdOK_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
